FROM i386/ubuntu:14.04

# 换源
COPY source.list /etc/apt/sources.list
# 安装必要包
RUN apt update 
# && apt install aptitude -y
# RUN aptitude install -y tar build-essential libtool libpcre3 libpcre3-dev zlib1g-dev libssl-dev 
# RUN aptitude 
RUN apt install -y gcc build-essential make qemu-kvm libssl-dev prelink python gdb curl strace python-pip

# python2版本比较折腾
RUN pip install --index-url https://pypi.tuna.tsinghua.edu.cn/simple \ 
itsdangerous==0.21 WerkZeug==0.7 Jinja2==2.4 click==2.0 Flask==0.12 sqlalchemy==1.00

RUN groupadd -r httpd && useradd -r -g httpd httpd
RUN mkdir /home/httpd/ && mkdir /home/httpd/lab && chown -R httpd:httpd /home/httpd/lab


